<template>
  <div class="customRef">
    <h1>这里介绍customRef的使用</h1>
    <br />
    <input type="text" v-model="text" @input="myRef">
  </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import useSumRef from "./useSumRef";
let text = ref(10);
// 配置自定义的myRef
function myRef(value:number) {
    return useSumRef(10,value)
}
</script>
<style scoped>
.customRef {
  width: 80vw;
  height: 80vh;
  border: 1px solid red;
}
</style>